/*
 * =====================================================================================
 *
 *       Filename:  Demultiplexer.c
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  07/13/2012 03:07:27 PM
 *       Revision:  none
 *       Compiler:  gcc/g++
 *
 *         Author:  wangtengchao , wangtengchao AT gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */
#include "demultiplexer.h"
#include "dispatcher.h"
#include <boost/bind.hpp>
using namespace inm::net;


void Demultiplexer::quit()
{
    dispatcher_->addToTasks(
                boost::bind(&Demultiplexer::closeEventHandles,this)
                );
}
